import { instance } from "../utils/request";
export const tradePub = (tradeData)=>{
    return instance.post('/1.1/classes/trade',tradeData)
}

export const tradeData = ()=>{
    return instance.get('/1.1/classes/trade')
}

export const tradeDelete = (id)=>{
    return instance.delete('/1.1/classes/trade/'+id)
}

export const tradeEdit = (id,objEdited)=>{
    return instance.put('/1.1/classes/trade/'+id,objEdited)
}